# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=lzbench
pkgver=1.8.1
pkgrel=0
pkgdesc="lzbench is an in-memory benchmark of open-source LZ77/LZSS/LZMA compressors"
url="https://github.com/inikep/lzbench"
arch="all !x86 !s390x !riscv64"
license="GPL zlib MIT Unlicense BSD Apache-2.0 CDDL CC0 custom"
options="!check" # No test suite from upstream
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/inikep/lzbench/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver/"

build() {
	make
}

package() {
	install -Dm 755 lzbench "$pkgdir"/usr/bin/lzbench

	install -Dm 644 -t "$pkgdir"/usr/share/doc/$pkgname/ README.md
}

sha512sums="5a1f4c25a7d8b95619027c527e668d466cbdb8759faf4fcd59d3de311895fc72788b8e06b7ac5bb2d26bb94fbe633f5639336fa6eac6ba72769e4ad969401862  lzbench-1.8.1.tar.gz"
